<!DOCTYPE html>
<html>
<head>
    <title>商品详情</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <!-- 在web项目中 css的路径要替换为 css文件的uri
    也就是 /项目名/css/style.css
    -->
    <link rel="stylesheet" type="text/css" href="../css/style.css" />
</head>

<body>
<div id="wrap">
    <div id="top_content">
        <div id="header">
            <div id="rightheader">
            </div>
            <div id="topheader">
                <h1 id="title">
                    <a href="#">商品管理</a>
                </h1>
            </div>
            <div id="navigation">
            </div>
        </div>
        <div id="content">
            <p id="whereami">
            </p>
            <h1>
                商品详情:
            </h1>
            <form action="/detailProduct" method="post">
                <table cellpadding="0" cellspacing="0" border="0" class="form_table">
<!--                    <tr>-->
<!--                        <td valign="middle" align="right">-->
<!--                            商品ID:-->
<!--                        </td>-->
<!--                        <td valign="middle" align="left">-->
<!--                            <input type="hidden" name="id" th:value="${product.id}" />-->
<!--                            <span th:text="${product.id}" readonly></span>-->
<!--                        </td>-->
<!--                    </tr>-->
                    <tr>
                        <td valign="middle" align="right">
                            商品名:
                        </td>
                        <td valign="middle" align="left">
                            <span th:text="${product.name}" readonly></span>
                        </td>
                    </tr>
                    <tr>
                        <td valign="middle" align="right">
                            价格:
                        </td>
                        <td valign="middle" align="left">
                            <span th:text="${product.price}" readonly></span>
                        </td>
                    </tr>
                    <tr>
                        <td valign="middle" align="right">
                            库存:
                        </td>
                        <td valign="middle" align="left">
                            <span th:text="${product.stock}" readonly></span>
                        </td>
                    </tr>
                    <tr>
                        <td valign="middle" align="right">
                            商品描述:
                        </td>
                        <td valign="middle" align="left">
                            <span th:text="${product.description}" readonly></span>
                        </td>
                    </tr>
                </table>
            </form>
            <p>
                <button onclick="window.location.href='/product'">关闭</button>
            </p>
        </div>
    </div>
    <div id="footer">
        <div id="footer_bg">
            www.commodityms.com.cn
        </div>
    </div>
</div>
</body>
</html>
